package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.AlterDomainAction;
import com.yanmaohu.yulia.bean.SchemaQualifiedName;

/**
 * @author Bright Lee
 */
public final class AlterDomainStatement implements SqlSchemaManipulationStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName domainName;
    private AlterDomainAction alterDomainAction;

    public AlterDomainStatement(int beginIndex, SchemaQualifiedName domainName, AlterDomainAction alterDomainAction) {
        this.beginIndex = beginIndex;
        this.endIndex = alterDomainAction.getEndIndex();
        this.domainName = domainName;
        this.alterDomainAction = alterDomainAction;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getDomainName() {
        return domainName;
    }

    public AlterDomainAction getAlterDomainAction() {
        return alterDomainAction;
    }

}
